package com.jh.user.pojo.freeQuick;

import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import java.io.Serializable;


@Entity
@Table(name = "t_geway_bank_card")
@EntityListeners(AuditingEntityListener.class)
public class BindCard implements Serializable {

    private static final long serialVersionUID = -3329586390332469986L;


    @Id
    @Column(name="id")
    private int id;
    /**
     * 请求号
     */
    @Column(name = "request_no")
    private String requestNo;

    /**
     * 返回商户号
     */
    @Column(name = "merchant_no")
    private String merchantNo;

    /**
     * 用户id
     */
    @Column(name = "user_id")
    private String userId;

    /**
     * 通道产品编码
     */
    @Column(name = "channel_product_code")
    private String channelProductCode;

    /**
     * 银行卡号
     */
    @Column(name = "bank_card_no")
    private String bankCardNo;

    /**
     * 银行卡开户名
     */
    @Column(name = "bank_account_name")
    private String bankAccountName;

    /**
     * 银行卡类型
     */
    @Column(name = "card_type")
    private String cardType;

    /**
     * 手机号
     */
    @Column(name = "bank_mobile")
    private String bankMobile;

    /**
     * 证件号
     */
    @Column(name = "cert_no")
    private String certNo;

    /**
     * 银行卡背面 cvn2三位数字， 信用卡必填
     */
    @Column(name = "cvn2")
    private String cvn2;

    /**
     * 银行卡有效期， 年在前、月在后
     */
    @Column(name = "expired")
    private String expired;

    /**
     * 业务类型
     */
    @Column(name = "busi_type")
    private String busiType;

    /**
     * 银行编码
     */
    @Column(name = "bank_abbr")
    private String bankAbbr;

    /**
     * 服务器通知地址
     */
    @Column(name = "server_callback_url")
    private String serverCallbackUrl;

    /**
     * 绑卡状态1:PENDING等待确认 2:SUCCESS绑卡成功
     */
    @Column(name = "bind_status")
    private String bindStatus;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getRequestNo() {
        return requestNo;
    }

    public void setRequestNo(String requestNo) {
        this.requestNo = requestNo;
    }

    public String getMerchantNo() {
        return merchantNo;
    }

    public void setMerchantNo(String merchantNo) {
        this.merchantNo = merchantNo;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getChannelProductCode() {
        return channelProductCode;
    }

    public void setChannelProductCode(String channelProductCode) {
        this.channelProductCode = channelProductCode;
    }

    public String getBankCardNo() {
        return bankCardNo;
    }

    public void setBankCardNo(String bankCardNo) {
        this.bankCardNo = bankCardNo;
    }

    public String getBankAccountName() {
        return bankAccountName;
    }

    public void setBankAccountName(String bankAccountName) {
        this.bankAccountName = bankAccountName;
    }

    public String getCardType() {
        return cardType;
    }

    public void setCardType(String cardType) {
        this.cardType = cardType;
    }

    public String getBankMobile() {
        return bankMobile;
    }

    public void setBankMobile(String bankMobile) {
        this.bankMobile = bankMobile;
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getCvn2() {
        return cvn2;
    }

    public void setCvn2(String cvn2) {
        this.cvn2 = cvn2;
    }

    public String getExpired() {
        return expired;
    }

    public void setExpired(String expired) {
        this.expired = expired;
    }

    public String getBusiType() {
        return busiType;
    }

    public void setBusiType(String busiType) {
        this.busiType = busiType;
    }

    public String getBankAbbr() {
        return bankAbbr;
    }

    public void setBankAbbr(String bankAbbr) {
        this.bankAbbr = bankAbbr;
    }

    public String getServerCallbackUrl() {
        return serverCallbackUrl;
    }

    public void setServerCallbackUrl(String serverCallbackUrl) {
        this.serverCallbackUrl = serverCallbackUrl;
    }

    public String getBindStatus() {
        return bindStatus;
    }

    public void setBindStatus(String bindStatus) {
        this.bindStatus = bindStatus;
    }
}
